import request from "../utils/request.js";

//简单写法:
/*data:{
  username:''
  password:''
}
*/
export function findAllMenu() {
  return request({
    url: "/rbacMenu/",
    method: "get"
  });
}

export function editOne(data) {
  return request({
    url: "/rbacMenu/",
    method: "put",
    data
  });
}

export function updateMenuFID(id, fid) {
  return request({
    url: "/rbacMenu/" + id + "/" + fid,
    method: "put"
  });
}

export function findMenuByManagerID(id) {
  return request({
    url: "/rbacMenu/" + id,
    method: "get"
  });
}
